#!/usr/bin/env python
import os
import sys
class ceph_chiose():
   def __init__(self,*args):
     if len(args[0]) == 1:
           self.run_init=0
           print """
                         help!!!!
"""  
     else:
         self.run_init=1
         self.host_status={}
         ceph_stat=os.popen('cat ceph_osd').read().split('\n')
         for i in ceph_stat:
              if 'host' in i:
                    host=i.split()[3]
                    self.host_status[host]=[]
              else:
                    self.host_status[host].append(i)
   def all_status(self):
       for k,v in self.host_status.items():
            print k+":"
            for i in v:
                 strli=' '.join(i.split())
                 print strli
h1=ceph_chiose(sys.argv)
if  h1.run_init == 1:
   h1.all_status()
else:sys.exit()